package com.googlecode.transmutant.spring;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import com.googlecode.transmutant.Stepper 
import org.junit.Test;
import org.junit.runner.RunWith 
import org.springframework.beans.factory.annotation.Autowired 
import org.springframework.context.ApplicationContext 
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration 
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner 

public class TransmutantNamespaceHandlerAutoRunTest {

	@Test
	public void testCreateSteps() throws Exception {
		def bos = new ByteArrayOutputStream()
		System.setOut(new PrintStream(bos))
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("com/googlecode/transmutant/spring/autoRun.xml")
		assert bos.toString().equals("Hello World! I am God!")
	}
}
